﻿//JumbotCms_4.1 Final
using System;
using System.Data;
using System.Xml;
using JumbotCms.Common;

namespace JumbotCms.WebFile.User
{
    public partial class _changegathering : JumbotCms.API.UserCenter
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            User_Load("", "html");
            if (q("act") != "save")
            {
                Response.Write(GetPageHtml("user_changegathering"));
            }
            else
            {
                if (!CheckFormUrl())
                    Response.End();
                doh.Reset();
                doh.ConditionExpress = "id=@id and state=1";
                doh.AddConditionParameter("@id", UserId);
                doh.AddFieldItem("CardUserName", f("txtCardUserName"));
                doh.AddFieldItem("CardBank", f("txtCardBank"));
                doh.AddFieldItem("CardNumber", f("txtCardNumber"));
                doh.Update("jcms_normal_user");
                Response.Write("JumbotCms.Alert('修改成功', '1', \"window.location='../index/index.aspx';\");");
            }
        }
    }
}
